<h2> Create Quiz </h2>
<% if @fail %>
  <div id="error_explanation">
    <h2><%= pluralize(@fail.length, "error") %> prohibited this quiz from being saved:</h2>
    <ul>
      <% @fail.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>

  </div>
<% end %>

<%= form_tag( :action => :createquiz) do %>
  <fieldset>
    <legend>Create New Quiz</legend>

    <div>
      <label for="title" >Title:</label>
      <%= text_field_tag :title, @title %>
    </div>

    <div>
      <label for="body" >Description:</label>
      <%= text_field_tag :description, @description %>
    </div>

    <div>
      <label for="scoring" >Scoring System:</label>
      <%= text_area_tag :scoring, @scoring %>
    </div>

    <div>
      <label for="survey" >Check for Survey:</label>
      <%= check_box_tag :survey, "pie" , @isquiz%>
    </div>

    <div>
      <%= submit_tag "Submit" %>
    </div>


  </fieldset>
<% end %>
